<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_keyword.*" %>
<%@page import="java.util.*" %>
<%@page import="com.lmpop.frame.util.PageTools" %>
<%
	Hashtable ti_keyword = new Hashtable();
	String url = request.getProtocol().substring(0, 4).toLowerCase() + "://" + request.getRemoteHost() + ":" + request.getLocalPort() + request.getContextPath();
	String width = "600";
	String height = "350";
	Ti_keywordInfo ti_keywordInfo = new Ti_keywordInfo();
	String type = "chart-goods-bar3D.jsp";
	if(request.getParameter("type")!=null && !request.getParameter("type").equals("")){
		type = request.getParameter("type");
	}
	String str = request.getParameter("delInfo");
	String iStart = "0";
	if(request.getParameter("iStart") != null && !"".equals(request.getParameter("iStart"))){
		iStart = request.getParameter("iStart");
	}
	int limit = 10;
	
	String k_type = "0";
	if(type.equals("chart-news-bar3D.jsp")){k_type="1";}else if(type.equals("chart-seller-bar3D.jsp")){k_type="2";}
	String key = "";
	ti_keyword.put("key_type",k_type);
	int counter = ti_keywordInfo.getCountByObj(ti_keyword);
	String pageString = new PageTools().getGoogleToolsBar(counter,"viewKeyChart.jsp?key="+key+"&k_type="+k_type+"&type="+type+"&iStart=",Integer.parseInt(iStart),limit);
%>
<html>
<script type="text/javascript">
	function onhref(){
		window.location.href="viewKeyChart.jsp?type='chart-goods-bar3D.jsp?iStart=<%=iStart %>'";
	}
</script>
  <head>
    <title>关键字统计</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td width="90%">
				<h1>关键字统计</h1>
				<input name="searchInfo" type="button" value="统计管理" class="buttoncss" onclick="window.location.href='index.jsp';" />
			</td>
			<td>
				<!--a href="addInfo.jsp"><img src="/program/admin/index/images/post.gif" /></a-->
			</td>
		</tr>
	</table>
	
	
	<table width="100%" cellpadding="0" cellspacing="0" class="dl_su">
		<tr>
			<td align="left" width="10%">
				<input type="button" name="delInfo" onclick="window.location.href='viewKeyChart.jsp?type=chart-goods-bar3D.jsp?iStart=<%=iStart %>';" value="商品" class="buttab"/>
				<input type="button" name="delInfo" onclick="window.location.href='viewKeyChart.jsp?type=chart-seller-bar3D.jsp?iStart=<%=iStart %>';" value="卖家" class="buttab"/>
				<input type="button" name="delInfo" onclick="window.location.href='viewKeyChart.jsp?type=chart-news-bar3D.jsp?iStart=<%=iStart %>';" value="资讯" class="buttab"/>
			</td>
			<td align="center">
				<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
					codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
					width="<%=width%>" height="<%=height%>" id="ie_chart" align="middle">
					<param name="allowScriptAccess" value="sameDomain" />
					<param name="movie" value="/js/open-flash-chart.swf?width=500&height=250&data=<%=type%>" />
					<param name="quality" value="high" />
					<param name="bgcolor" value="#FFFFFF" />
					<embed src="/js/open-flash-chart.swf?data=<%=type%>" quality="high"
						bgcolor="#FFFFFF" width="<%=width%>" height="<%=height%>"
						name="chart" align="middle" allowScriptAccess="always"
						type="application/x-shockwave-flash"
						pluginspage="http://www.macromedia.com/go/getflashplayer"
						id="chart" />
				</object>
			</td>
		</tr>
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0" class="dl_bg">
		<tr align="center">
			<td>
			<%=pageString %>
			</td>
		</tr>
	</table>
	
</body>

</html>
